@import "./variable.scss";
@import "./base.scss";

body {
    background-color: #eae8eb;
}

.buildNav {
    width: 50px;
    height: 250px;
    position: fixed;
    top: 50%;
    right: 0px;
    margin-top: -125px;
    background-color: #fff;
    border-radius: 10px 0 0 10px;
    overflow: hidden;

    li {
        width: 50px;
        height: 50px;
        font-size: 14px;
        color: #666;
        transition: all 0.3s;
        text-align: center;
        padding-top: 4px;
        box-sizing: border-box;

        &.active {
            color: #fff;
            background-image: linear-gradient(135deg, #ff971b, #ff5000);
        }

        &:hover {
            color: #fff;
            background-image: linear-gradient(135deg, #ff971b, #ff5000);
        }
    }
}

nav {
    display: none;
    width: 100%;
    height: 54px;
    background-color: #fff;
    position: fixed;
    top: 0;
    z-index: 200;

    .navBox {
        line-height: 54px;
        width: 1190px;
        margin: 0 auto;

        img {
            width: 80px;
            padding-top: 10px;
            float: left;
        }

        .search {
            width: 630px;
            margin: 0 auto;
            height: 40px;
            border: 1px solid #ff5000;
            border-radius: 20px;
            background-color: #fff;
            position: relative;
            top: 6px;

            select {
                padding: 10px 16px;
                border-radius: 20px;
                box-sizing: border-box;
                color: #999;
                font-size: 12px;
                position: absolute;
                top: 3px;
                left: 3px;
            }

            input {
                position: absolute;
                top: 0px;
                left: 86px;
                padding: 8px 20px 8px 20px;
                text-indent: 10px;
                box-sizing: border-box;
                height: 40px;
                line-height: 24px;
                width: 460px;
                border: none;
                outline: 0;
                background: url(../images/index/搜索.png) no-repeat left center,
                    url(../images/index/照相机.png) no-repeat right center;
                background-size: 20px;
                background-color: #fff;
            }

            button {
                background-image: linear-gradient(to right, #ff9000 0, #ff5000 100%);
                background-repeat: repeat-x;
                width: 73px;
                height: 34px;
                border-radius: 17px;
                position: absolute;
                top: 3px;
                right: 3px;
                color: #fff;
                font-size: 16px;
                font-weight: 700;
            }
        }
    }
}

header {
    .nav {
        width: 100%;
        height: 36px;
        background-color: #f5f5f5;
        border-bottom: 1px solid #eee;
        margin-bottom: 30px;

        .navBox {
            width: 990px;
            margin: 0 auto;
            line-height: 36px;
            font-size: 12px;
            color: #6c6c6c;
            margin-bottom: 20px;
            overflow: hidden;

            .loginBox {
                float: left;

                li {
                    float: left;
                    padding: 0px 10px;

                    &:hover {
                        color: $theme;
                    }

                    &.active {
                        color: $theme;
                    }
                }
            }

            .loginShadow {
                display: none;
                padding: 20px;
                box-sizing: border-box;
                width: 270px;
                height: 150px;
                background-color: #fff;
                box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1);
                position: fixed;
                top: 35px;
                left: 138px;
                z-index: 100;

                .zhezhao {
                    width: 180px;
                    height: 36px;
                    position: fixed;
                    top: 0;
                    left: 138px;
                    background-color: rgba(0, 0, 0, 0);
                }

                .shadowImag {
                    width: 100%;
                    line-height: 20px;
                    text-align: left;

                    span {
                        float: right;
                        padding: 0px 10px;

                        &:hover {
                            color: $theme;
                            cursor: pointer;
                        }
                    }
                }

                .shadowImg {
                    width: 50px;
                    height: 50px;
                    border-radius: 25px;
                    overflow: hidden;
                }

                .shadowState {
                    text-align: center;
                    line-height: 24px;
                    color: #ff934c;
                    border: 1px solid #ff934c;
                    background-color: rgb(254, 246, 229);
                }
            }

            .navMenu {
                float: right;

                li {
                    float: left;
                    padding: 0px 10px;

                    &:hover {
                        color: $theme;
                    }

                    &.active {
                        color: $theme;
                    }
                }
            }
        }
    }
}


.searchBox {
    @extend type_area;
    height: 90px;
    display: flex;
    justify-content: space-between;
    padding: 0 80px 0 22px;
    box-sizing: border-box;

    .logo {
        img {
            width: 142px;
        }
    }

    .search {
        width: 630px;

        .top {
            width: 628px;
            height: 40px;
            border: 1px solid #ff5000;
            border-radius: 20px;
            position: relative;
            background-color: #fff;

            select {
                padding: 10px 16px;
                border-radius: 20px;
                box-sizing: border-box;
                color: #999;
                font-size: 12px;
            }

            input {
                padding: 8px 20px 8px 20px;
                text-indent: 10px;
                box-sizing: border-box;
                height: 40px;
                line-height: 24px;
                width: 460px;
                border: none;
                outline: 0;
                background: url(../images/index/搜索.png) no-repeat left center,
                    url(../images/index/照相机.png) no-repeat right center;
                background-size: 20px;
                background-color: #fff;
            }

            button {
                background-image: linear-gradient(to right, #ff9000 0, #ff5000 100%);
                background-repeat: repeat-x;
                width: 73px;
                height: 34px;
                border-radius: 17px;
                position: absolute;
                top: 3px;
                right: 3px;
                color: #fff;
                font-size: 16px;
                font-weight: 700;
            }

            .searchBox1 {
                position: absolute;
                top: 40px;
                display: none;
                left: 96px;
                width: 420px;
                border: 1px solid #eee;
                background-color: #fff;
                z-index: 1000;

                li {
                    font-size: 12px;
                    color: #666;
                    line-height: 20px;
                    text-indent: 10px;

                    &:hover {
                        color: #fff;
                        background-color: $theme;
                    }
                }
            }

            p {
                margin-top: 5px;

                span {
                    font-size: 12px;
                    color: #999;
                    margin-right: 10px;
                    cursor: pointer;

                    &:hover {
                        color: $theme;
                    }
                }
            }
        }
    }

    .ewm {
        width: 76px;
        background-color: #fff;
        padding: 6px 6px 8px 8px;
        box-sizing: border-box;
        position: relative;
        top: -10px;

        p {
            color: #ff5000;
            font-size: 10px;
            text-align: center;
        }

        img {
            width: 62px;
        }
    }
}

section {
    @extend type_area;
    background-color: #fff;
    border-radius: 20px;

    .bannerBox {
        overflow: hidden;
        margin-bottom: 20px;

        .top {
            margin-top: 12px;
            height: 36px;

            span {
                float: left;
                width: 190px;
                font-weight: 700;
                text-align: center;
                font-size: 16px;
                color: #ff6200;
            }

            ul {
                li {
                    float: left;
                    font-size: 14px;
                    color: #666;
                    padding: 0 12px;
                    border-left: 1px solid #ccc;
                }
            }

            .title {
                li {
                    font-size: 16px;
                    font-weight: 700;
                    color: #ff0036;
                    padding: 0px 12px;
                    border: none;
                }

                .gre {
                    color: #33c900;
                }
            }
        }

        .bot {
            .lef {
                float: left;
                position: relative;

                ul {
                    width: 190px;
                    font-size: 14px;

                    li {
                        line-height: 32px;
                        height: 32px;
                        padding: 1px 19px 1px 25px;
                        font-size: 14px;
                        width: 145px;
                        transition: all 0.3s;
                        color: #666;
                        background: url(../images/index/进入.png) no-repeat 170px center;
                        background-size: 10px 10px;

                        &:hover {
                            color: $theme;
                            background-color: #fac3b1;
                        }
                    }
                }

                .listDis {
                    display: none;
                    box-sizing: border-box;
                    width: 700px;
                    height: 510px;
                    background-color: #fff;
                    border: 2px solid $theme;
                    border-radius: 20px;
                    padding: 20px;
                    position: absolute;
                    left: 188px;
                    top: 0;
                    z-index: 100;

                    p {
                        span {
                            color: #999;
                            font-size: 12px;
                            padding: 0 12px;
                            line-height: 30px;

                            &:hover {
                                color: $theme;
                                cursor: pointer;
                            }
                        }

                        margin-bottom: 20px;
                    }

                    h4 {
                        margin-bottom: 20px;
                    }
                }
            }

            .cen {
                position: relative;
                float: left;
                width: 690px;
                height: 510px;

                .top1 {
                    .swiper-container {
                        width: 520px;
                        height: 280px;
                        border-radius: 16px;
                        overflow: hidden;
                        float: left;
                    }

                    .ggTop {
                        width: 160px;
                        height: 280px;
                        margin-left: 10px;
                        float: left;
                        border-radius: 16px;
                        overflow: hidden;
                    }
                }

                .cen1 {
                    .cenBox {
                        height: 24px;
                        width: 690px;
                        line-height: 24px;

                        img {
                            width: 74px;
                            float: left;
                        }

                        span {
                            margin-left: 10px;
                            color: #999;
                            float: left;
                            font-size: 12px;
                        }
                    }
                }

                .bot1 {
                    .ggBox {
                        height: 201px;
                        width: 520px;
                        box-sizing: border-box;
                        background-color: #f8f8f8;
                        border-radius: 16px;
                        padding: 5px;
                        float: left;
                        position: absolute;
                        bottom: 0;
                        display: flex;
                        justify-content: space-between;

                        div {
                            border-radius: 16px;
                            overflow: hidden;
                            width: 251px;

                            img {
                                width: 100%;
                                height: 100%;
                            }
                        }
                    }

                    .ggSmall {
                        position: absolute;
                        bottom: 0;
                        right: 0;
                        border-radius: 16px;
                        overflow: hidden;
                    }
                }
            }

            .rig {
                height: 510px;
                width: 290px;
                float: right;

                .sp1 {
                    padding: 6px 0;
                    box-sizing: border-box;
                    height: 134px;

                    .userHead {
                        width: 50px;
                        height: 50px;
                        margin: 0 auto;
                        border-radius: 50%;
                        overflow: hidden;
                    }

                    .nickName {
                        margin-top: 6px;
                        display: flex;
                        justify-content: center;
                    }

                    .mass {
                        margin-top: 6px;
                        display: flex;
                        justify-content: space-evenly;

                        a {
                            color: #999;
                            font-size: 12px;
                            float: left;
                            text-align: center;

                            b {
                                color: $theme;
                            }
                        }
                    }
                }

                .sp2 {
                    img {
                        width: 100%;
                        margin-bottom: 10px;
                    }

                    ul {
                        display: flex;
                        justify-content: space-evenly;
                        margin-bottom: 14px;

                        li {
                            float: left;
                            font-weight: 700;
                            font-size: 12px;

                            &.active {
                                border-bottom: 2px solid $theme;
                            }
                        }
                    }

                    p {
                        font-size: 12px;
                        font-weight: 700;
                        text-indent: 10px;
                        margin-bottom: 14px;
                    }

                    .lifeBox {
                        border-top: 1px solid #eee;
                        display: flex;
                        flex-wrap: wrap;
                        align-content: flex-start;
                        justify-content: space-between;
                        margin-bottom: 14px;

                        img {
                            border-right: 1px solid #eee;
                            border-bottom: 1px solid #eee;
                            width: 70px;
                            margin-bottom: 0;
                        }
                    }

                    .alApp {
                        display: flex;
                        justify-content: space-evenly;

                        img {
                            width: 32px;
                        }
                    }
                }
            }
        }
    }

    .list {
        h2 {
            display: block;
            margin-left: 25px;
            background: url(../images/index/gxtj.png) no-repeat 100px center;
        }

        .render {
            padding: 18px 25px 0px 10px;
            display: flex;
            justify-content: space-between;
            align-content: flex-start;
            flex-wrap: wrap;

            .goods {
                padding: 7px;
                width: 215px;
                height: 319px;
                margin-bottom: 14px;
                border-radius: 14px;
                transition: all 0.4s;
                position: relative;

                &:hover {
                    cursor: pointer;
                    box-shadow: 0px 20px 40px rgba(0, 0, 0, 0.1);
                }

                * {
                    pointer-events: none;
                }

                .goodsPic {
                    width: 215px;
                    height: 215px;
                    border-radius: 14px;
                    overflow: hidden;
                    margin-bottom: 6px;

                    img {
                        width: 100%;
                        height: 100%;
                    }
                }

                .goodsTitle {
                    overflow: hidden;
                    text-overflow: ellipsis;
                    display: -webkit-box;
                    -webkit-line-clamp: 2;
                    -webkit-box-orient: vertical;

                    color: #6c6c6c;
                    margin-bottom: 11px;
                }

                .goodsPrice {
                    color: #ff4400;
                    font-size: 20px;
                }

                .goodsPeo {
                    color: #999;
                    font-size: 14px;
                }
            }
        }
    }
}

// banner样式
.swiper-pagination-bullet-active {
    background: $theme;
    width: 20px;
    border-radius: 20px;
}

.swiper-button-next {
    color: rgba(0, 0, 0, 0);
    background: url(../images/index/前进.png) no-repeat center center;
    background-size: 28px 28px;
    background-color: rgba(0, 0, 0, 0.2);
    height: 40px;
    width: 28px;
}

.swiper-button-prev {
    color: rgba(0, 0, 0, 0);
    background: url(../images/index/后退.png) no-repeat center center;
    background-size: 28px 28px;
    background-color: rgba(0, 0, 0, 0.2);
    height: 40px;
    width: 28px;
}


// .aaa {
//     height: 70px;
// }

// .headerF {
//     position: absolute;
//     left: 0;
//     top: 0;
// }